﻿/// <summary>
/// 后台页面基类
/// </summary>
public class AdminBasePage : RadBasePageEx
{
    #region 当前用户
    private ltModel.Model.article_user currentUser;

    protected ltModel.Model.article_user CurrentUser
    {
        get
        {
            if (currentUser == null)
            {
                currentUser = DataCaches.GetUser(int.Parse(User.Identity.Name));
            }
            return currentUser;
        }
    }

    private ltModel.Model.userTeam currentUserGroup;

    protected ltModel.Model.userTeam CurrentUserGroup
    {
        get
        {
            if (currentUserGroup == null)
            {
                currentUserGroup = DataCaches.GetUserTeam(CurrentUser.IsManager, CurrentUser.user_id);
            }
            return currentUserGroup;
        }
    }
    #endregion
}